/**
 * Created by kule on 2017/9/1.
 */
export const versionLessThen=(ver1='',ver2='')=>{
    const ver1Arr=ver1.split('.');
    const ver2Arr=ver2.split('.');
    const len=Math.max(ver1Arr.length,ver2Arr.length);
    let v1,v2;
    for(let i=0;i<len;i++){
        v1=ver1Arr[i];
        v2=ver2Arr[i];
        if(((v1||0)-0)<((v2||0)-0)){
            return true;
        }
    }
    return false;
};
export default versionLessThen;